import $http from './request.js'
//获取题库列表
function getQuestionList(params){
    return $http({
        url:'/question/list',
        method:'get',
        params,
    })
}
//修改题库状态
function resetStatus(data){
    return $http({
        url:'/question/status',
        method:'post',
        data,
    })
}
//删除题库状态
function delQuestion(data){
    return $http({
        url:'/question/remove',
        method:'post',
        data,
    })
}
//新增题库
function addQuestion(data){
    return $http({
        url:'/question/add',
        method:'post',
        data,
    })
}
//编辑题库
function editQuestion(data){
    return $http({
        url:'/question/edit',
        method:'post',
        data,
    })
}
export { getQuestionList,resetStatus,delQuestion,addQuestion,editQuestion }